package cn.com.dhcc.ddi.task.vo.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.ddi.task.vo.TaskTab;

public class TaskTabRowWapper implements RowMapper<TaskTab>{

	@Override
	public TaskTab mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		TaskTab vo = new TaskTab();
		
		vo.setId(rs.getString("id"));
		vo.setMtime(rs.getTimestamp("mtime"));
		vo.setTableId(rs.getString("table_id"));
		vo.setTabOrder(rs.getString("tab_order"));
		vo.setTaskId(rs.getString("task_id"));
		vo.setWhereCondition(rs.getString("where_condition"));
		vo.setTableName(rs.getString("table_name"));
		vo.setStartValue(rs.getString("extr_start_value"));
		vo.setEndValue(rs.getString("extr_end_value"));
		return vo;
	}

}
